import React, { useState, useEffect } from 'react'
import { View, Text } from '@tarojs/components'
import { AtButton, AtDivider } from 'taro-ui'

import './index.scss'
export default (props) => {
  console.log(props)
  const { name, newView, newCount, newLike } = props
  console.log(name, newView, newCount, newLike)

  return (
    <View className="tag-wrap">
      <View className="tag-card-wrap">
        <View className="tag-card-btn">
          {name}
        </View>
        <Text className="tag-card-text">
          {(newCount / 10000).toFixed(2) + '万'}
        </Text>
        <Text className="tag-card-text">
          {(newCount / 10000).toFixed(2) + '万'}
        </Text>
        <Text className="tag-card-text">
          {(newLike / 10000).toFixed(2) + '万'}
        </Text>
      </View>
      <View className="tag-card-divider"></View>
    </View>
  )
}
